import { axiosMock, delayFn, randArrItem } from '@/services/axiosMock'

const img1 = `https://fba-srm.oss-cn-hongkong.aliyuncs.com/1734260133964_test1.png`
const img2 = `https://fba-srm.oss-cn-hongkong.aliyuncs.com/1734260167384_test2.png`

axiosMock('default', mock => {
  // 通用附件上传
  mock.onPost(`/tmsapi/attach/universal_upload`).reply(
    delayFn(600, () => {
      return {
        success: randArrItem([true, true, false]),
        data: randArrItem([img1, img2]),
      }
    }),
  )
})
